package com.ittest.actuator;


import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
@Endpoint(id = "pay",enableByDefault = true)
public class PayEndpoint {


    @ReadOperation
    public Object getPay(){
        Map payMap = new HashMap<>();
        payMap.put("level1","300");
        payMap.put("level2","500");
        payMap.put("level3","700");
        return payMap;
    }
}
